import Vue from 'vue'
import Router from 'vue-router'
const Movie = () => import('@/components/Movie')
const Cinema = () => import('@/components/Cinema')
const Mine = () => import('@/components/Mine')

Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [
		{
			path: '/',
			redirect: '/movie',
		},
		{
			path: '/movie',
			name: 'Movie',
			component: Movie
		},
		{
			path: '/cinema',
			name: 'Cinema',
			component: Cinema
		},
		{
			path: '/mine',
			name: 'Mine',
			component: Mine
		},
	]
})